package com.aries.wallet;

import java.util.HashMap;

import com.aries.business.ExpenseDataRepository;

import android.os.Bundle;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.TextView;
import android.support.v4.app.NavUtils;

public class ExpenseDetail extends Activity {
	private ExpenseDataRepository DataRepository = new ExpenseDataRepository((Context)this);

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_expense_detail);
        getActionBar().setDisplayHomeAsUpEnabled(true);
        

        // Get the message from the intent
        Intent intent = getIntent();
        String id = intent.getStringExtra(ExpenseList.MESSAGE_DETAIL_ENTITY);
        
        TextView test = (TextView)findViewById(R.id.activity_expense_detail_test);

        test.setText(id);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_expense_detail, menu);
        return true;
    }

    
    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        switch (item.getItemId()) {
            case android.R.id.home:
                NavUtils.navigateUpFromSameTask(this);
                return true;
        }
        return super.onOptionsItemSelected(item);
    }
    
    

}
